SftTree/OCX 7.0

SftTreeItem.Parent Property

Softel vdm, Inc.

Returns the item's parent item.

Syntax       

Get

VB.NET

ItemIndex = object.Parent  As Integer

VB

ItemIndex = object.Parent  As Long

C#.NET

int ItemIndex = object.Parent;

VC++

long ItemIndex = object->Parent;
long ItemIndex = object->GetParent();

C

HRESULT object->get_Parent(long* ItemIndex);

Delphi

ItemIndex := object.Parent   : Integer;

object

A SftTreeItem object.

ItemIndex

Returns the item's parent item.  If the item doesn't have a parent, -1 is returned.

Comments

The Parent property returns the item's parent item.

To find an item's top-most parent, use the Item.TopParent property instead.

See Also  SftTreeItem Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com